package com.example.controller.hello;

import java.util.ArrayList;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/9/20 10:14
 */
@RestController
public class HelloController {

    @RequestMapping(value = "hello")
    public String hello() {

        return "hello";
    }

    @PostMapping(value = "list")
    public String testList(@RequestBody ArrayList<Long> idList) {
        System.out.println(idList.size());
        System.out.println(idList);
        return idList.toString();
    }
}
